# def func (nums,target):
#     n=len(nums)
#     for i in range(n):
#         for j in range (i+1,n):
#             if nums[i]+nums[j]==target:
#                 return [i,j]
#     return []
# nums=[3,2,4]
# target=6
# print(func(nums,target))
# def factorial(n):
#     if n == 0 or n == 1:
#         return 1
#     return n * factorial(n - 1)
# factorial(3)
# for i in range(len(list)-1):
#     for j in range(len(list)-i-1):
#         if list[j]>list[j+1]:
#             list[j],list[j + 1]= list[j+1],list[j]
#
# for i in range(1,10):  #控制行
#     for h in range(1,i+1):  #控制列
#         j = h*i
#         print(f"{h}*{i}={j}", end=" ")
#     print()

def aa(n):
    if n>1:
        return n*aa(n-1)
    return 1
aa(5)

